package com.flyme.module.base.provider.controller;

import com.flyme.common.core.model.ResultBody;
import com.flyme.core.base.supper.controller.BaseController;
import com.flyme.module.base.client.api.SysStudyconfigRemoteService;
import com.flyme.module.base.client.entity.SysStudyconfig;
import com.flyme.module.base.provider.service.SysStudyconfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 继续教育配置管理
 * @author zyh
 * @date 2020-8-29
 */
@Api(tags = "继续教育配置")
@RestController
public class SysStudyconfigController extends BaseController<SysStudyconfigService, SysStudyconfig> implements SysStudyconfigRemoteService {


    @ApiOperation(value = "通过证书id查询继续教育配置")
    @Override
    public ResultBody get(@PathVariable String syscertificateId) {
        SysStudyconfig config = bizService.getOne(q().eq("syscertificateId", syscertificateId), false);
        return ResultBody.success().setData(config);
    }
}
